home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #2 / Amiga Plus CD - 1999 - No. 2.iso / System-Boost / Sound / AmTagEd / Install_AmTagEd < prev    next >
Encoding:
Text File  |  1998-11-09  |  4.4 KB  |  262 lines

  1. ; Install script for AmTagEd
  2. ;
  3. ; Copyright © 1998 Kimmo Palosaari
  4. ;
  5. ; $VER: Install-AmTagEd 1.72 (3.11.98)
  6. ;
  7.  
  8. (set @default-dest "SYS:Tools")
  9.  
  10. (procedure CopyLibs #srcdir #srcname #dstdir
  11.  
  12.     (copylib
  13.         (prompt "Copying " #srcname "...")
  14.         (help @copylib-help)
  15.         (source (tackon #srcdir #srcname))
  16.         (dest #dstdir)
  17.         (optional "force" "askuser")
  18.         (confirm "expert")
  19.     )
  20. )
  21.  
  22. (complete 0)
  23.  
  24. (message
  25.     "\nAmTagEd 1.72\n\n"
  26.     "Copyright © 1998 Kimmo Palosaari\n\n\n"
  27.     "This script will install AmTagEd\n"
  28.     "and required libraries."
  29. )
  30.  
  31. (set @default-dest
  32.     (askdir
  33.         (prompt "Select the destination directory for AmTagEd.\nA drawer will NOT be created.")
  34.         (help askdir-help)
  35.         (default @default-dest)
  36.     )
  37. )
  38.  
  39. (complete 10)
  40.  
  41. (set @copydoc
  42.     (askbool
  43.         (prompt "\nDo you want to copy the documentation file?")
  44.         (help askbool-help)
  45.         (default 1)
  46.     )
  47. )
  48.  
  49. (complete 20)
  50.  
  51. (if (= @copydoc 1)
  52.     (set @doc-dir
  53.         (askdir
  54.             (prompt "Select the destination directory for the documentation file.")
  55.             (help askdir-help)
  56.             (default @default-dest)
  57.         )
  58.     )
  59. )
  60.  
  61. (complete 30)
  62.  
  63. (set @icontype
  64.     (askchoice
  65.         (prompt "\nSelect what kind of icon you want to install")
  66.         (help askchoice-help)
  67.         (choices "No icon" "MagicWB" "NewIcon")
  68.         (default 1)
  69.     )
  70. )
  71.  
  72. (complete 40)
  73.  
  74. (if (or (= @icontype 1) (= @icontype 2))
  75. (
  76.     (run "Run >NIL: <NIL: SYS:Utilities/MultiView Icons/Icons.iff PORTNAME=AMTAGEDMULTIVIEW")
  77.  
  78.     (set @imagetype
  79.         (askchoice
  80.             (prompt "\nSelect which image you want for icon")
  81.             (help askchoice-help)
  82.             (choices "1" "2" "3")
  83.             (default 0)
  84.         )
  85.     )
  86.  
  87.     (rexx "quitmultiview.rexx")
  88. )
  89. )
  90.  
  91. (complete 50)
  92.  
  93. (set @languages
  94.     (askoptions
  95.         (prompt "\nSelect which languages should be installed.")
  96.         (help askoptions-help)
  97.         (choices
  98.             "English"
  99.             "Suomi"
  100.          "Deutsch"
  101.         )
  102.         (default 1)
  103.     )
  104. )
  105.  
  106. (copyfiles
  107.     (source "AmTagEd")
  108.     (help copyfiles-help)
  109.     (dest @default-dest)
  110. )
  111.  
  112. (if (= @copydoc 1)
  113. (
  114.     (copyfiles
  115.         (source "AmTagEd.guide")
  116.         (help copyfiles-help)
  117.         (dest @doc-dir)
  118.     )
  119.  
  120.     (if (= @icontype 1)
  121.         (copyfiles
  122.             (source "Icons/AmTagEd.guide.icon.info")
  123.             (help copyfiles-help)
  124.             (dest @doc-dir)
  125.             (newname "AmTagEd.guide.info")
  126.         )
  127.         (if (= @icontype 2)
  128.             (copyfiles
  129.                 (source "Icons/AmTagEd.guide.newicon.info")
  130.                 (help copyfiles-help)
  131.                 (dest @doc-dir)
  132.                 (newname "AmTagEd.guide.info")
  133.             )
  134.         )
  135.     )
  136. )
  137. )
  138.  
  139. (if (= @icontype 1)
  140.     (if (= @imagetype 0)
  141.         (copyfiles
  142.             (source "Icons/AmTagEd.icon1.info")
  143.             (help copyfiles-help)
  144.             (dest @default-dest)
  145.             (newname "AmTagEd.info")
  146.         )
  147.         (if (= @imagetype 1)
  148.             (copyfiles
  149.                 (source "Icons/AmTagEd.icon2.info")
  150.                 (help copyfiles-help)
  151.                 (dest @default-dest)
  152.                 (newname "AmTagEd.info")
  153.             )
  154.             (if (= @imagetype 2)
  155.                 (copyfiles
  156.                     (source "Icons/AmTagEd.icon3.info")
  157.                     (help copyfiles-help)
  158.                     (dest @default-dest)
  159.                     (newname "AmTagEd.info")
  160.                 )
  161.             )
  162.         )
  163.     )
  164. )
  165.  
  166. (if (= @icontype 2)
  167.     (if (= @imagetype 0)
  168.         (copyfiles
  169.             (source "Icons/AmTagEd.newicon1.info")
  170.             (help copyfiles-help)
  171.             (dest @default-dest)
  172.             (newname "AmTagEd.info")
  173.         )
  174.         (if (= @imagetype 1)
  175.             (copyfiles
  176.                 (source "Icons/AmTagEd.newicon2.info")
  177.                 (help copyfiles-help)
  178.                 (dest @default-dest)
  179.                 (newname "AmTagEd.info")
  180.             )
  181.             (if (= @imagetype 2)
  182.                 (copyfiles
  183.                     (source "Icons/AmTagEd.newicon3.info")
  184.                     (help copyfiles-help)
  185.                     (dest @default-dest)
  186.                     (newname "AmTagEd.info")
  187.                 )
  188.             )
  189.         )
  190.     )
  191. )
  192.  
  193. (
  194.     (set n 0)
  195.     (while
  196.         (set language
  197.             (select n
  198.                 "English"
  199.                 "suomi"
  200.                 "deutsch"
  201.                 ""
  202.             )
  203.         )
  204.         (
  205.             (if (IN @languages n)
  206.                 (if (<> 0 n)
  207.                 (
  208.                     (set catalogs (tackon "Locale/Catalogs" language))
  209.                     (set destination (tackon "Locale:Catalogs" language))
  210.                     (makedir destination)
  211.                     (if (exists (tackon catalogs "AmTagEd.catalog"))
  212.                         (copylib
  213.                             (prompt "Copying catalog...")
  214.                             (source (tackon catalogs "AmTagEd.catalog"))
  215.                             (dest destination)
  216.                         )
  217.                     )
  218.                 )
  219.                 )
  220.             )
  221.             (set n (+ n 1))
  222.         )
  223.     )
  224. )
  225.  
  226. (makedir "ENVARC:AmTagEd")
  227. (makedir "ENV:AmTagEd")
  228.  
  229. (CopyLibs "Libs/MUI" "NList.mcc" "MUI:Libs/MUI")
  230.  
  231. (complete 60)
  232.  
  233. (CopyLibs "Libs/MUI" "NListview.mcc" "MUI:Libs/MUI")
  234.  
  235. (complete 65)
  236.  
  237. (CopyLibs "Libs/MUI" "NListviews.mcp" "MUI:Libs/MUI")
  238.  
  239. (complete 70)
  240.  
  241. (CopyLibs "Libs/MUI" "BetterString.mcc" "MUI:Libs/MUI")
  242.  
  243. (complete 75)
  244.  
  245. (CopyLibs "Libs/MUI" "BetterString.mcp" "MUI:Libs/MUI")
  246.  
  247. (complete 80)
  248.  
  249. (CopyLibs "Libs/MUI" "TextEditor.mcc" "MUI:Libs/MUI")
  250.  
  251. (complete 85)
  252.  
  253. (CopyLibs "Libs/MUI" "TextEditor.mcp" "MUI:Libs/MUI")
  254.  
  255. (complete 90)
  256.  
  257. (CopyLibs "Libs" "popupmenu.library" "LIBS:")
  258.  
  259. (complete 100)
  260.  
  261. (exit)
  262.